﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace vnMcdonald.Models
{
    public partial class Category
    {
        public Category()
        {
            this.Products = new List<Product>();
        }

        public int CategoryId { get; set; }

        [Required(ErrorMessage = "{0} không được bỏ trống")]
        public string Name { get; set; }

        public Nullable<int> Order { get; set; }
        public Nullable<byte> IsActive { get; set; }
        public virtual ICollection<Product> Products { get; set; }
    }
}
